#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int main()
{
	/*int a = 2;
	int b = 3;
	a = a ^ b;
	b = a ^ b;
	a = a ^ b;
	printf("a=%d  b=%d", a, b);*/

	/*int n = 0;
	scanf("%d", &n);
	int count = 0;
	while (n)
	{
		if (n % 2 == 1)
			count++;
		n /= 2;
	}
	printf("%d", count);*/
	/*int x = 9, y = 3;
	printf("%d", x ^ y);*/
	int a = 0, b = 0;
	scanf("%d %d", &a, &b);
	int c = a ^ b;
	int count = 0;
	while (c)
	{
		if (c % 2 == 1)
			count++;
		c /= 2;
	}
	printf("%d", count);
	return 0;
}
//00001100
//00000101
//00000100

//01001110
//
//01001001
// 
//00000111